//
//  AppDelegate.swift
//  Weibo1.0
//
//  Created by lianghuahao on 15/12/7.
//  Copyright © 2015年 lianghuahao.com. All rights reserved.
//

import UIKit

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {

    var window: UIWindow?


    func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
        setupAppearance()
        window = UIWindow(frame: UIScreen.mainScreen().bounds)
        window?.backgroundColor = UIColor.whiteColor()
        
        window?.rootViewController = MainViewController()
        window?.makeKeyAndVisible()
        return true
    }
    //设置全局外观- 很多都会在appdelegate中设置所有需要控件的全局外观
    private func setupAppearance() {
        //修改导航栏的全局外观 - 要在控件创建之前,  一 经设置全局有效
        UINavigationBar.appearance().tintColor = WBAppearanceTintColor
        UITabBar.appearance().tintColor = WBAppearanceTintColor
    
    }
}
























